<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>凯盛项目管理系统</title>
	<link rel="stylesheet" href="css/bootstrap.min.css" />

  </head>
  
  <body>
    <%@ include file="top.jsp"  %>
    <div class="container">
		<div class="row">
			<div class="span3">
				<div class="well" style="padding: 8px 0;margin-top:70px;" >
					<ul class="nav nav-list">
						<li class="nav-header">${sessionScope.pu.project.name}</li>
						<li >${sessionScope.user.username}:${sessionScope.pu.role }</li>
						<li class="divider"></li>
						<li><a href="project.jspx?id=${sessionScope.pu.projectid }"><i class="icon-home"></i>最新动态</a></li>
						<li><a href="goal.jspx"><i class="icon-flag"></i>目标</a></li>
						<li><a href="document.jspx"><i class="icon-folder-open"></i>资料库</a></li>
						<li ><a href="file.jspx"><i class="icon-file"></i>文件共享</a></li>
						<li><a href="contact.jspx"><i class="icon-user "></i>联系人</a></li>
						<li class="active"><a href="idea.jspx"><i class="icon-fire icon-white"></i>想法</a></li>
						<li><a href="#"><i class="icon-warning-sign"></i>Bug</a></li>
						<li><a href="main.jspx?m=editProject&id=${pu.projectid }"><i class="icon-cog"></i>项目设置</a></li>
					</ul>
				</div>
			</div>
			<div class="span9">
				<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:90px;border-bottom:none">
					<li class="active">
					<i class="icon-fire"></i>想法
					</li>
					<li class=" active pull-right">
						<a href="idea.jspx?m=newidea"><i class="icon-plus"></i>发表想法</a>
					</li>
				</ul>
				<div class="well" style="border-radius:0px;border-top:none;">
					
					<c:forEach items="${ideaList}" var="i">
						<blockquote>
							<h4><a href="idea.jspx?m=showidea&id=${i.id }&p=${page.pageNum }">${i.name}</a></h4>
							<p style="font-size:14px;line-height:1.5;">${i.cont}</p>
							<small>${i.user.username}发布于 ${i.time }</small>
							<a href="idea.jspx?m=edit&id=${i.id }" title="编辑"><i class="icon-pencil"></i></a>
							<a href="idea.jspx?m=del&id=${i.id }" title="删除"><i class="icon-trash"></i></a>
						</blockquote>
					</c:forEach>
			
					<br />
				<!-- 	<div class="pagination pagination-right">
						<ul>
							<c:choose>
						  		<c:when test="${page.pageNum == 1 }">
						  			<li><a>首页</a></li>
						  		</c:when>
						  		<c:otherwise>
								  	<li><a href="document.jspx?p=1">首页</a></li>
						  		</c:otherwise>
						  	</c:choose>
						  	<c:choose>
						  		<c:when test="${page.pageNum == 1 }">
						  			<li><a>上一页</a></li>
						  		</c:when>
						  		<c:otherwise>
								  	<li><a href="document.jspx?p=${page.pageNum -1}">Prev</a></li>
						  		</c:otherwise>
						  	</c:choose>
						  	<c:choose>
						  		<c:when test="${page.pageNum == page.totalPages }">
						  			<li><a>Next</a></li>
						  		</c:when>
						  		<c:otherwise>
								  	<li><a href="document.jspx?p=${page.pageNum+1}">Next</a></li>
						  		</c:otherwise>
						  	</c:choose>
						  	<c:choose>
						  		<c:when test="${page.pageNum == page.totalPages }">
						  			<li><a>尾页</a></li>
						  		</c:when>
						  		<c:otherwise>
								  	<li><a href="document.jspx?p=${page.totalPages}">尾页</a></li>
						  		</c:otherwise>
						  	</c:choose>
						</ul>
					</div> -->
				</div>
			</div>
		</div>
	</div>
  </body>
</html>
